package pers.chao.tool.infrastructure.kv;

/**
 * Description: 普通键值对
 *
 * @author W.Chao
 * @date 2020/12/3 0:26
 **/
public class StrTuple extends TypeTuple<String, Object> {
	private String key;
	private Object value;

	public StrTuple() {
	}

	public StrTuple(String key, Object value){
		this.key = key;
		this.value = value;
	}

	public String getKey() {
		return key;
	}

	public StrTuple setKey(String key) {
		this.key = key;
		return this;
	}

	public Object getValue() {
		return value;
	}

	public StrTuple setValue(Object value) {
		this.value = value;
		return this;
	}

	public static StrTuple create(String key, Object value){
		return new StrTuple(key, value);
	}
}
